package com.movie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.movie.bean.*;
import com.movie.bean.vo.UserQueryVO;

import java.util.List;

public interface UserService {
    void HandleUserRegister(User user);

    int CheckName(String name);

    User CheckLogin(String uname, String upassword);

    List<TicketOrder> getUserPaidTicketList(int uid);

    User getUserByUid(int uid);

    void updateBalance(double money, int uid);

    List<TicketOrder> geTWaitPaidUserOrderList(int uid);

    void updateTicketStatus(String number, int total, int uid,List<Ticket> ticketList);

    void handleDeleteUserOrder(String number,Integer status);

    void addComment(Comment comment);

    List<Comment> getCommentList(int mid);

    void delLike(int uid, int cid);

    void addLike(int uid, int cid);

    CommentLike isExistCommentLike(int uid, int cid);

    void addFavorite(Favorite favorite);

    void delFavorite(Favorite favorite);

    Favorite isExistFavorite(int uid, int mid);


    User updateInfo(User user);

    int checkedComment(int mid, int uid);

    Page<User> userPage(UserQueryVO userQueryVO);

    void banUser(User user);
}
